<template>
	<view class="hospitalRechargeRec">
		<SwitchPatient :fun="swit" balance></SwitchPatient>
		<rechargeRecordDeta :id="Data.id" :type="'hospitalization'"></rechargeRecordDeta>
	</view>
</template>

<script setup>
	import SwitchPatient from '@/components/SwitchPatient.vue'
	import rechargeRecordDeta from '@/pages/selfPayment/rechargeRecord/rechargeRecordDeta.vue'
	import {
		useTopStore
	} from '@/store/TopUpService.js'
	import {
		reactive,
		onMounted
	} from 'vue'
	const Data = reactive({
		recharge: {},
		id: 0
	})
	const swit = (v) => {
		Data.id = v.id
	}
	const topStore = useTopStore();
	onMounted(() => {

	})
</script>

<style lang="less" scoped>

</style>
